package cn.lysj.framework.order.domain;

import cn.lysj.framework.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;

/**
 * @author zwj
 * @description 订单食物详情
 * @create 2018-11-05 10:30:21
 **/
@Data
@Entity
@EqualsAndHashCode(callSuper=true)
public class FoodOrderInfo extends BaseEntity {
    //食物订单Id
    private String foodOrderId; //订单号Id
    private String foodId; //食物Id
    private String foodName; //食物名称
    @Column(columnDefinition = "decimal(10,4)")
    private BigDecimal money; //合计价格
    private Integer number;//数量
    private Integer status;//状态 1.未上菜 2.已经上菜
    private String foodTypeId;//食物品类Id
    private String standardLevTwoIds; //二级ids
    private String standardLevTwoIdNames;//口味，配料拼接
    private Integer priority;//类别

    public FoodOrderInfo() {
    }

    public FoodOrderInfo(String foodOrderId, String foodId, String foodName, BigDecimal money, Integer number, Integer status, String foodTypeId, String standardLevTwoIds, String standardLevTwoIdNames,Integer priority) {
        this.foodOrderId = foodOrderId;
        this.foodId = foodId;
        this.foodName = foodName;
        this.money = money;
        this.number = number;
        this.status = status;
        this.foodTypeId = foodTypeId;
        this.standardLevTwoIds = standardLevTwoIds;
        this.standardLevTwoIdNames = standardLevTwoIdNames;
        this.priority = priority;
    }
}